package lumis.portal.device;

import javax.servlet.http.HttpServletRequest;

/**
 * Discover the device informations.
 *
 * @version $Revision: 13161 $ $Date: 2011-06-22 11:33:17 -0300 (Wed, 22 Jun 2011) $
 * @since 6.0.0
 */
public interface IDeviceManager
{	
	/**
	 * Detects the device from the request and returns its capabilities.
	 * 
	 * @param request the http request.
	 * @return the device informations.
	 */
	IDevice discoverDevice(HttpServletRequest request);

	/**
	 * Returns one Device according with the lumUserAgent informed on parameter.
	 * 
	 * @param userAgent the user agent of the device.
	 * @return the device informations.
	 */
	IDevice discoverDevice(String userAgent);
}
